﻿<shared:UserControlBase x:Class="Miris.HumanMilkAnalyser.WPF.CustomizedUserControl.DatePickerUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="clr-namespace:Miris.HumanMilkAnalyser.WPF.Shared"
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="160">
    <Border BorderThickness="1" BorderBrush="#a7a7a7" Height="35" Background="#dbe1ee" CornerRadius="4">
        <Border.Effect>
            <DropShadowEffect ShadowDepth="1" Opacity="0.6" />
        </Border.Effect>
        <DatePicker SelectedDate="{Binding SelectedDate, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" 
                    DisplayDate="1/1/2010" FontSize="14" BorderThickness="0" 
                    Margin="2,5,0,0" Width="105" RenderTransformOrigin="0.5,0.5">
            <DatePicker.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </DatePicker.RenderTransform>
        </DatePicker>
    </Border>
</shared:UserControlBase>
